<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="<%=request.getContextPath()%>"></c:set>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车辆管理列表</title>
</head>
<body>
	
	<a href="${ctx}/viadd.jsp">新增车辆信息${ctx}</a>|
	<table>
		<tr>
			<td>编号ID</td>
			<td>车辆编号</td>
			<td>施工队</td>
			<td>车辆类型 </td>
			<td>北斗设备编号</td>
			<td>保养</td>
			<td>司机</td>
			<td>管理者</td>
		</tr>
		<c:forEach var="l" items="${pageInfo.records}" begin="1" end="15">
			<tr>
				<td><c:out value="${l.id}"/></td>
				<td><c:out value="${l.vehicleNO}"/></td>
				<td>abc</td>
				<td><c:out value="${l.vehicleType}"/></td>
				<td>cc</td>
				<td><c:out value="${l.maintain}"/></td>
				<td><c:out value="${l.driver}"/></td>
				<td><c:out value="${l.manager}"/></td>
				<td>[  <a href="${ctx}/vehicle/edit?id=${l.id}">修改</a>	 ][ <a href="${ctx}/vehicle/${l.id}/del">删除</a>  ]</td>
			</tr>
		</c:forEach>
	</table>
	<p>
	<a href = "${ctx}/vehicle/list?offset=0" >首页</a>  
<a href = "${ctx}/vehicle/list?offset=${pageInfo.current - 1} " >上一页</a>  
<a href = "${ctx}/vehicle/list?offset=${pageInfo.current + 1} " >下一页</a>  
<a href = "${ctx}/vehicle/list?offset=${pageInfo.pages}" >尾页</a>  
第${pageInfo.current}页/共${pageInfo.pages}页 
 总记录[${pageInfo.total}]条  
		</p>
</body>
</html>